Testa isso aqui:
function doRemoveAbnormalSpeed(cid) if not isCreature(cid) or not isPlayer(cid) then return false end doChangeSpeed(cid, -1200) return true end function onSay(cid, words, param) time = 10 needPremium = true exhaustTime = 2 if needPremium and not isPremium(cid) then doPlayerSendTextMessage(cid, 27, "You need a Premium Account to use speed.") return true end if exhaustion.get(cid, 8554) and exhaustion.get(cid, 8554) > 0 then doPlayerSendTextMessage(cid, 27, "You need wait "..exhaustion.get(cid, 8554).." seconds to use again.") return true end doChangeSpeed(cid,200) addEvent(doRemoveAbnormalSpeed, time*1000, cid) doCreatureSay(cid, "Strong Haste", TALKTYPE_ORANGE_1) exhaustion.set(cid, 8554, exhaustTime) return true end







info
Grupo: Campones
Registrado: 07/11/13
Posts: 86
Reputação: 0
Alguem poderia colocar exhausted de 2 segundos para usar esse comando novamente:
function onSay(cid, words, param)
end